<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        // 邮箱以这些结束.com|.cn|.sina|.net
        // @符号后面 可以为163,126,qq
        var email=/^[0-9a-zA-Z]{5,12}@(163|126|qq)\.(com|cn|sina|net)$/;
        var reg='586549@163.net'
        console.log(email.test(reg));
    </script>
</body>
</html>